package com.example.java_blog.mapper;

import com.example.java_blog.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 均先生
 * Date: 2024-03-10
 * Time: 15:34
 */
@Mapper
public interface UserInfoMapper {
    //根据用户名查询用户信息
    UserInfo selectByName(String userName);

    //根据用户ID查询用户信息
    UserInfo selectById(Integer userId);
}
